-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable interface selection for algorithm job #3753
Conversation
app/grandchallenge/algorithms/migrations/0065_create_interfaces_for_jobs.py
Outdated
Show resolved
Hide resolved
As I'm working on the failing tests, I'm realizing that a lot of the tests on job creation through the API for example, will fail with these changes here unless I also tackle the API views (which I was gonna do in a separate PR). I could mark those as expected to fail, but then I need to be very careful to remove those marks in the next PR again. I could also tackle the API views here as well, but then it becomes a much larger PR. |
This updates the `VerificationRequiredMixin` to directly subclass `AccessMixin`. This makes it possible to include this mixin in views where another `AccessMixin` is used as well. Discussed in #3753 (comment)
app/grandchallenge/algorithms/migrations/0065_create_interfaces_for_jobs.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I think the migration is the only thing that needs some more work due to the large amount of existing data. You might need to take another look at the other data migrations in the feature branch and double check that they're likely to run okay.
app/grandchallenge/algorithms/migrations/0065_create_interfaces_for_jobs.py
Show resolved
Hide resolved
app/grandchallenge/algorithms/migrations/0065_create_interfaces_for_jobs.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
This enables selecting an interface when trying out an algorithm. Interface selection happens in a separate form and view, but is unnecessary if an algorithm has only 1 interface.
Part of https://github.com/DIAGNijmegen/rse-roadmap/issues/153